package com.lanou.entity;

import java.util.List;

// 页面信息
public class PageInfo {
    private int offset; //第几页
    private int limit; //显示几条数据
    private List rows; //一条数据的内容
    private long total; //数据总数

    public int getOffset() {
        return offset;
    }

    public PageInfo setOffset(int offset) {
        this.offset = offset;
        return this;
    }

    public int getLimit() {
        return limit;
    }

    public PageInfo setLimit(int limit) {
        this.limit = limit;
        return this;
    }

    public List getRows() {
        return rows;
    }

    public PageInfo setRows(List rows) {
        this.rows = rows;
        return this;
    }

    public long getTotal() {
        return total;
    }

    public PageInfo setTotal(long total) {
        this.total = total;
        return this;
    }
}
